package com.weibo.service;

import com.weibo.entity.Blog;
import com.weibo.entity.BlogImg;
import com.weibo.entity.Comment;
import com.weibo.resp.BlogDetailAndCommentsResp;
import com.weibo.resp.BlogListItemResp;

import java.util.HashMap;
import java.util.List;

public interface BlogService {

    List<BlogListItemResp> getList(HashMap<String,Object> param);

    BlogDetailAndCommentsResp getOne(int blogId);

    void add(Blog blog);

    void update(Blog blog);

    void addImg(BlogImg blogImg);

    void deleteImg(int imgId);

    void addComment(Comment comment);

    List<BlogImg> getImgs(int blogId);
}
